import Layout from '@/layout/index.vue'
import { RouteRecordRaw } from "vue-router";

// 构造路由树形菜单
export function constructRouteMenu(routers: Array<RouteRecordRaw>): Array<RouteRecordRaw> {
    const layoutNode: RouteRecordRaw = {
        path: `/layoutCatalog`,
        component: () => Layout,
        children: routers,
    }
    return [layoutNode]
}